using System;

namespace Domain
{
	[Serializable]
	public struct Name
	{
		private string itsFirstName;
		private string itsMiddleName;
		private string itsLastName;

		public Name(string firstName, string middleName, string lastName)
		{
			itsFirstName = firstName.Trim();
			if (middleName != null)
				itsMiddleName = middleName.Trim();
			else
				itsMiddleName = string.Empty;
			itsLastName = lastName.Trim();
		}
		//*************************************************
		public string FirstName
		{
			get { return itsFirstName; }
		}
		//*************************************************
		public string MiddleName
		{
			get { return itsMiddleName; }
		}
		//*************************************************
		public string LastName
		{
			get { return itsLastName; }
		}
		//*************************************************
		public string FullName
		{
			get { return FirstName + " " + MiddleName + " " + LastName; }
		}
	}
}